//
//  ZZKeyboardView.h
//  ExpertApp
//
//  Created by zhangxy on 2017/9/8.
//  Copyright © 2017年 sjhz. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZZHomeTopicEntity.h"
#import "ZZTopicCommentEntity.h"
#import "FeedBackEntity.h"
#import "EmojiBoardView.h"
#import "ZTextView.h"

#define BottomHeight 49

typedef NS_ENUM(NSInteger,ZZKeyboardControls) {
    ZZKeyboardControlsDefault,  // 默认仅表情
    ZZKeyboardControlsAddPhoto, // 发送图片
    ZZKeyboardControlsEmoji, // 发送图片
};

typedef NS_ENUM(NSInteger,ZZKeyboardResultCode) {
    ZZKeyboardResultSend,       // 发送事件
    ZZKeyboardResultSendImage,  // 发送图片
};

@interface ZZKeyboardView : UIView

@property(nonatomic,strong) id chatpterModel;

// coe
@property(nonatomic,strong) void (^ResultBlock)(int code,NSString *text,id replayModel);


@property(nonatomic,strong) ZTextView      *textField;
-(instancetype)initWithDelegate:(UIViewController *) delegate changeView:(UIScrollView *) changeView show:(BOOL) isShowKeyboard;
-(instancetype)initWithDelegate:(UIViewController *) delegate changeView:(UIScrollView *) changeView show:(BOOL) isShowKeyboard style:(ZZKeyboardControls) controls;


-(void)hideKeyboard;


-(void)setReplyModel:(id ) model;


-(void)setUploadResutl:(NSDictionary *) dict image:(UIImage *) img;



@end
